package com.enjoyor.soa.traffic.api.service.dubbo.mtps;

import java.util.List;

import com.enjoyor.soa.traffic.api.dto.mtps.AppMessageInfoDto;
import com.enjoyor.soa.traffic.api.dto.mtps.AppMessageUserDto;
import com.enjoyor.soa.traffic.util.pojo.ResultPojo;

public interface IDubboAppMessageInfoService {

    /**
     * 添加消息数据
     * 
     * @param personName(操作者名,用于日志记录)
     * @param appMessageInfoDto(
     *            id,
     *            relevantId;theme,type,title,content,time,fromUserId,fromUserName,extras)
     * @param appMessageUserDtos(id,messageId,
     *            userId,userName,isDelete,deleteTime,isSuccess,isRead)
     * @return
     */
    public ResultPojo insert(String personName, AppMessageInfoDto appMessageInfoDto,
            List<AppMessageUserDto> appMessageUserDtos);

}
